package org.tio.sitexxx.service.vo.topic;

import java.io.Serializable;
import java.util.Map;
import java.util.UUID;

/**
 * @author tanyaowu 
 * 2016年11月8日 下午4:02:58
 */
public class TopicVo implements Serializable {
	private static final long serialVersionUID = -3043791690152475450L;

	public static final String CLIENTID = UUID.randomUUID().toString();

	public static interface Type {

		/**
		 * 清空Conf和ConfDev
		 */
		byte CLEAR_CONF = 3;

		/**
		 * 移除user缓存,params为uid
		 */
		byte CLEAR_USER = 4;

		/**
		 * ip白名单缓存清空
		 */
		byte CLEAR_IP_WHITE_LIST = 9;

	}

	private Byte type = null;

	private String params;

	private Map<String, Object> complexParams;

	private String clientId = CLIENTID;

	/**
	 * 
	 * @author tanyaowu
	 */
	public TopicVo() {
	}

	/**
	 * @param args
	 * @author tanyaowu
	 */
	public static void main(String[] args) {

	}

	/**
	 * @return the clientId
	 */
	public String getClientId() {
		return clientId;
	}

	/**
	 * @param clientId the clientId to set
	 */
	public void setClientId(String clientId) {
		this.clientId = clientId;
	}

	/**
	 * @return the type
	 */
	public Byte getType() {
		return type;
	}

	/**
	 * @param type the type to set
	 */
	public void setType(Byte type) {
		this.type = type;
	}

	public String getParams() {
		return params;
	}

	public void setParams(String params) {
		this.params = params;
	}

	public Map<String, Object> getComplexParams() {
		return complexParams;
	}

	public void setComplexParams(Map<String, Object> complexParams) {
		this.complexParams = complexParams;
	}
}
